package com.qk.management.service.impl;

import com.qk.entity.Activity;
import com.qk.management.mapper.ActivityMapper;
import com.qk.management.service.ActivityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author MrZhao
 * @created 2025-10-14 16:29
 * @description 活动管理业务层实现类
 *
 */
@Slf4j
@Service
public class ActivityServiceImpl implements ActivityService {

    @Autowired
    private ActivityMapper activityMapper;

    @Override
    public List<Activity> getActivityByType(String type) {
        List<Activity> list = activityMapper.selectByType(type);
        return list;
    }
}
